package cn.zjutleo.village_server.mapper;

import cn.zjutleo.village_server.dto.*;
import cn.zjutleo.village_server.entity.Cooperate;
import cn.zjutleo.village_server.vo.CooperateVo;
import com.github.pagehelper.Page;

import java.util.List;

/**
 * @author: 杜雨茜
 * @description: 村民互助活动
 **/
public interface CooperateMapper {

    int deleteByPrimaryKey(Integer cooperateid);

    int insert(Cooperate record);

    int insertSelective(CooperateVo record);

    /**
     * Description 根据id查询活动
     **/
    CooperateVo selectByPrimaryKey(Integer cooperateid);

    int updateByPrimaryKeySelective(CooperateVo record);

    int updateByPrimaryKey(Cooperate record);

    /**
     * Description 更新审核状态
     **/
    int updateByPrimaryKeyCheck(CooperateCheckDto cooperateCheckDto);

    List<CooperateDto> selectCooperateList(CooperateSelectDto cooperateSelectDto);

    Page<CooperateDto> selectCooperatePage(CooperateSelectDto cooperateSelectDto);
}